package com.platform.car.service.impl;

import com.platform.car.dao.ParkingDao;
import com.platform.common.base.impl.BaseServiceImpl;
import com.platform.car.model.Parking;
import com.platform.car.service.ParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ParkingServiceImpl extends BaseServiceImpl<Parking> implements ParkingService {

    @Autowired
    private ParkingDao parkingDao;

    @Override
    public List<Parking> selectByCity(Parking parking) {
        return parkingDao.selectByCity(parking);
    }

    @Override
    public Long countParkTotal(Parking parking) {
        return parkingDao.countParkTotal(parking);
    }

    @Override
    public Long countPark(Parking parking) {
        return parkingDao.countPark(parking);
    }

    @Override
    public Long countAutoParkTotal(Parking parking) {
        return parkingDao.countAutoParkTotal(parking);
    }

    @Override
    public Long countAutoPark(Parking parking) {
        return parkingDao.countAutoPark(parking);
    }

    @Override
    public Long countOrdinaryParkTotal(Parking parking) {
        return parkingDao.countOrdinaryParkTotal(parking);
    }

    @Override
    public Long countOrdinaryPark(Parking parking) {
        return parkingDao.countOrdinaryPark(parking);
    }

    @Override
    public List<Parking> selectByScope(Parking parking) {
        return parkingDao.selectByScope(parking);
    }
}
